<!--{subtemplate common/header}-->
<h3 class="flb">
<em id="return_pay">
{lang yy_pay:var1}</em>
<span>
<a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang yy_pay:var2}">{lang yy_pay:var2}</a>
</span>
</h3>
<!--{if $credit>=$rs['p_pay']}-->
<form method="post" autocomplete="off" id="payform" name="payform" action="plugin.php?id=yy_pay:pay&amp;pid={$pid}&amp;submit=yes" onsubmit="ajaxpost(this.id, 'floatlayout_$_GET['handlekey']');return false;">
<div id="floatlayout_pay">
<div class="c">
<div class="p_c">
<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="<?php echo dreferer();?>" />
<input type="hidden" name="cid" value="$_GET['cid']" />
<input type="hidden" name="authorid" value="$_GET['authorid']" />
</div>
{lang yy_pay:var10}<font color="red">{$rs[p_pay].$_G[setting][extcredits][$cvar[p_credit]][unit].$_G[setting][extcredits][$cvar[p_credit]][title]}</font>
<br />
{lang yy_pay:var3}
</div>
<div class="o pns" id="moreconf">
<button type="submit" id="paysubmit" class="pn pnc" value="true" name="paysubmit"><span>{lang yy_pay:var4}</span></button>
</div>
</div>
</form>
<script>
function succeedhandle_$_GET['handlekey'](locationhref, message, param) {
	showDialog(message, 'right', '', 'location.href="' + locationhref + '"');
}
</script>
<!--{else}-->
<div id="floatlayout_pay">
<div class="c altw">
	{lang yy_pay:var5} {$cvar[p_bcreditinfo]}
	</div>
    <p class="o pns"><button type="button" class="pn pnc" onclick="hideWindow('$_GET['handlekey']');"><strong>{lang close}</strong></button></p>
	
</div>
<!--{/if}-->
<div id="floatlayout_$_GET['handlekey']"></div>
<!--{subtemplate common/footer}-->